using Bulb.Core.Services.DataStore;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Bulb.Test.RepositoryTests
{
    [TestClass]
    public class FilterTests
        : RepositoryTests
    {
        [TestMethod]
        public void TestThatFilterBulbToRepository()
        {
            var testProduct = MockBulbItemRepository.Filter(f => f.Name == "Bulb 1");

            Assert.IsNotNull(testProduct);
            Assert.IsInstanceOfType(testProduct[0], typeof(BulbItem));
            Assert.AreEqual(0, testProduct[0].Id);
        }
    }
}